package cn.zwxky.android.user.Utils;

/**
 * Created by Administrator on 2017/4/10 0010.
 */


public class NoDoubleClickUtils {
    private static long lastClickTime;
    private final static int SPACE_TIME = 1000;

    public synchronized static boolean isDoubleClick(){
        long time = System.currentTimeMillis();
        if (time-lastClickTime<SPACE_TIME)
        {
            return true;
        }
        lastClickTime = time;
        return false;
    }
}
